package oo.Day05;

public class StaticDemo {
    public static void main(String[] args) {


    Loo o1 = new Loo();
    o1.show();
    Loo o2 = new Loo();
    o2.show();
    Loo o3 = new Loo();
    o3.show();
    }
}




//演示静态变量
class Loo{
    int a;
    static int b;
    Loo(){a++;b++;}
    void show(){ System.out.println("a="+a+",b="+b);}

}
